//
//  SavePlayerCell.m
//  Cup
//
//  Created by dllo on 15/4/29.
//  Copyright (c) 2015年 doll. All rights reserved.
//

#import "SavePlayerCell.h"

@implementation SavePlayerCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.nameLabel = [[UILabel alloc] init];
        self.nameLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:self.nameLabel];
        [_nameLabel release];
        
        self.playImage = [[UIImageView alloc] init];
        [self.contentView addSubview:self.playImage];
        [_playImage release];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.nameLabel.frame = CGRectMake(80, 20, self.contentView.frame.size.width - 95, 40);
    self.playImage.frame = CGRectMake(15, 15, 50, 50);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
